﻿using System;
using System.Runtime.Serialization;

namespace Resonance.TrainNode.Contracts.Entities
{
	[DataContract]
	public class TrainJob
	{
		[DataMember]
		public string ID { get; set; }

		[DataMember]
		public int CurrentEpoch { get; set; }

		[DataMember]
		public double CurrentError { get; set; }

		[DataMember]
		public TrainAlgorithmTypeEnum TrainAlgorithmType { get; set; }

		[DataMember]
		public TrainParameters TrainParams { get; set; }

		[DataMember]
		public string NNetID { get; set; }

		[DataMember]
		public DateTime? StartTime { get; set; }

		[DataMember]
		public DateTime? EndTime { get; set; }

		[DataMember]
		public JobStateEnum State { get; set; }

	}
}
